import request from '@/relyon/request'

// 登录
export function login(data){
    return request({
        url : '/auth/login',
        method : 'post',
        data
    })
}

// 注册
export function register(data){
    return request({
        url : '/auth/register',
        method : 'post',
        data
    })
}

// 获取验证码
export function verificationMail(params){
    return request({
        url : '/auth/verificationMail/' + params.type,
        method : 'get',
        params
    })
}

// 效验验证码
export function verifyMail(params){
    return request({
        url : '/auth/verifyMail',
        method : 'get',
        params
    })
}


export default {
    login,
    register,
    verificationMail,
    verifyMail,
}